<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
</body>
<script>
	
	var txt="Hello"

	txt.length=5;

	// 方法
	txt.indexOf()
	txt.replace()
	txt.search()

	// 创建对象
	person=new Object();
	person.name="Bill"
	person.age=19
	person.eyecokor=blue

	//  数组
	var arr=new Array(3)
	arr[0]="saad"
	arr[1]="sabd"
	arr[2]="sbnd"
     
    var arr=new Array("saad","sabd","sbnd")
    // 修改
    arr[0]="tom"
    console.log(arr)

    // 日期
    // 转化为UTC格式
    function utc(a){
    var date=new Date()
	    date.setTime(date.getTime()+a*86400000);
	    console.log(date.toUTCString());
	    return date.toUTCString()
    }


</script>
</html>